﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            showlogin();
        }       
    }
    private void showlogin()
    {
        if ((Convert.ToInt32(Session["UserId"])) != 0)
        {
            UcLogin1.Visible = false;
        }
        else
        {
            UcLogin1.Visible = true;
        }
    }
}